package tgc.edu.exam.entity;

import java.util.UUID;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;

import org.springframework.data.annotation.CreatedBy;

import tgc.edu.exam.custom.BaseEntity;

/**
 * 教学计划
 * @author asus
 *
 */
@Entity
public class TeachingProgramme extends BaseEntity<UUID> {
	//班级
	private TbClass tbClass;
	//课程
	private TbCurriculum tbCurriculum;
	//老师
	private Teacher teacher;
	//总学时
	private Integer count;
	
	@ManyToOne
	@CreatedBy
	public TbClass getTbClass() {
		return tbClass;
	}
	public void setTbClass(TbClass tbClass) {
		this.tbClass = tbClass;
	}
	@ManyToOne
	@CreatedBy
	public TbCurriculum getTbCurriculum() {
		return tbCurriculum;
	}
	public void setTbCurriculum(TbCurriculum tbCurriculum) {
		this.tbCurriculum = tbCurriculum;
	}
	@ManyToOne
	@CreatedBy
	public Teacher getTeacher() {
		return teacher;
	}
	public void setTeacher(Teacher teacher) {
		this.teacher = teacher;
	}
	public Integer getCount() {
		return count;
	}
	public void setCount(Integer count) {
		this.count = count;
	}
	public TeachingProgramme(UUID id, Boolean isUsed, String createName, String createDate, String updateName,
			String updateDate, TbClass tbClass, TbCurriculum tbCurriculum, Teacher teacher, Integer count) {
		super(id, isUsed, createName, createDate, updateName, updateDate);
		this.tbClass = tbClass;
		this.tbCurriculum = tbCurriculum;
		this.teacher = teacher;
		this.count = count;
	}
	public TeachingProgramme() {
		super();
		// TODO Auto-generated constructor stub
	}
	public TeachingProgramme(UUID id, Boolean isUsed, String createName, String createDate, String updateName,
			String updateDate) {
		super(id, isUsed, createName, createDate, updateName, updateDate);
		// TODO Auto-generated constructor stub
	}
	public TeachingProgramme(UUID id, Boolean isUsed) {
		super(id, isUsed);
		// TODO Auto-generated constructor stub
	}
	public TeachingProgramme(UUID id) {
		super(id);
		// TODO Auto-generated constructor stub
	}
	
}
